<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BaiduDecoratorTitle
 *
 * @author Implement <hdjahs@qq.com>
 */
   

class BaiduDecoratorTitle {
    
    private $obj;

    public function __construct(Baidu $obj) {
        $this->obj = $obj;
        $this->init();
    }
    
    public function init() {
        $tool = Tool::getIns();
        $title = $tool->strCutByStr($this->obj->result, '<meta name="description" content="', '">');
        $this->obj->str .= $title;
    }

}
